//
//  CollectionView.h
//  test
//
//  Created by huichen on 2018/6/4.
//  Copyright © 2018年 huichen. All rights reserved.
//

#import "CellModel.h"
#import <UIKit/UIKit.h>

@interface CollectionView : UIView

/**
 *  行间距
 */
@property (nonatomic, assign) CGFloat rowSpacing;
/**
 *  列间距
 */
@property (nonatomic, assign) CGFloat lineSpacing;
/**
 *  内边距
 */
@property (nonatomic, assign) UIEdgeInsets sectionInset;

/*
 * 初始化，固定行数，frame
 */
- (instancetype)initWithFrame:(CGRect)frame rowNumber:(NSInteger)rowNumber;

/*
 * 初始化，固定行数，行高度,frame高度不定
 */
- (instancetype)initWithPointX:(CGFloat)pX pointY:(CGFloat)pY width:(CGFloat)width rowNum:(NSInteger)rowNum rowHeight:(CGFloat)rowHeight;

/*
 *更新数据
 */
- (void)updateData:(NSMutableArray<CellModel *> *)dataArray;


@end
